package ui.View;

import org.uqbar.arena.actions.MessageSend;
import org.uqbar.arena.layout.HorizontalLayout;
import org.uqbar.arena.layout.VerticalLayout;
import org.uqbar.arena.widgets.Button;
import org.uqbar.arena.widgets.Label;
import org.uqbar.arena.widgets.Panel;
import org.uqbar.arena.windows.WindowOwner;

import ui.modelApplication.ApplicationBuscador;
import ui.modelApplication.ModelAsiento;

public class ErrorWindow extends InformacionWindow
{

	public ErrorWindow(WindowOwner parent, ApplicationBuscador buscadorApp) {
		super(parent, buscadorApp);
	}

	@Override
	protected void addActions(Panel actionsPanel) 
	{
		actionsPanel.setLayout(new VerticalLayout());
		
		Label pedidoLabel = new Label(actionsPanel);
		pedidoLabel.setText("Por favor intente nuevamente");
				
		Button opcionBoton = new Button(actionsPanel);
		opcionBoton.setCaption("Aceptar");
		opcionBoton.onClick(new MessageSend(this, "close")); //TODO implementar la verdadera accion
	}

	@Override
	protected void createFormPanel(Panel mainPanel) {}

}
